package com.pucheng.bracelet.data.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.pucheng.bracelet.app.util.DatetimeUtil

@Entity(tableName = "hert_rate")
data class HertRateBean(
    @PrimaryKey(autoGenerate = true) val id: Int = 0,
    @ColumnInfo(name = "hert_rate") val hertRate: Int = 0,
    @ColumnInfo(name = "measured_date") val measuredDate: String = DatetimeUtil.formatDate(System.currentTimeMillis(),
        DatetimeUtil.DATE_PATTERN_A_H)
) : BarChartBean("$hertRate", hertRate.toDouble())